#include "qbasedrawcell.h"

#include "../QDraw.h"

#pragma warning(disable : 26495)
#pragma warning(disable : 26812)

QNamespaceStart(Qui)

enum shape_enum
{
	QShapeRound, QShapeRectangle,
	QShapePolygon
};

class QShapeDrawCell
	: public QDrawCellBase
{
	private:
		shape_enum cell_shape;

	private:
		POINT*     polygon_point;
		int        point_count;

	public:
		QShapeDrawCell() { cell_shape = QShapeRectangle; }
		QShapeDrawCell(shape_enum shape) { cell_shape = shape; }

	public:
		void set_polygon_point(const POINT* point, int point_number)
		{
			polygon_point = (POINT*)point;
			point_count   = point_number;           
		}

		void draw();
};
QNamespaceEnd